package com.ssy.jt808.gateway.infrastructure.gateway;

import com.ssy.jt808.gateway.infrastructure.gateway.pojo.TerminalBindInfoDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author wangzezhou
 */
@FeignClient(name="vehicle-management")
public interface VehicleInfoApi{

  /**
   * 通过手机号码查询车辆的绑定信息
   *
   * @param phoneNo 设备的手机号码
   *
   * @return
   */
  @GetMapping("/v1/terminals/phone-nos/{phoneNo}")
  TerminalBindInfoDTO getBindInfoByPhoneNo( @PathVariable("phoneNo") String phoneNo );
}
